/**
 * Copyright (c) 2012-2016, b3log.org & hacpai.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * 前台样式.
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
 * @author <a href="http://88250.b3log.org">Liang Ding</a>
 * @version 2.12.13.22, Aug 1, 2016
 */

/* start module */
.module-list .slogan {
    position: absolute;
    top: 50%;
    margin-top: -12px;
}

.module-list .title {
    color: #767676;
    margin: 5px 0 5px 36px;
    display: block;
    line-height: 19px;
}

.module-list.open-source .title {
    margin-left: 60px;
}

.module-list.open-source .slogan {
    margin-top: -10px;
}

.module-list.domain .slogan {
    text-align: center;
    margin-top: -8px;
    width: 60px;
}

.module-list.domain .title {
    margin-left: 80px;
}

.module-list.domain .tag {
    margin-right: 10px;
}

.module-panel.ad {
    padding: 10px;
    text-align: center;
}

.module-panel.ad .header {
    color: #333;
}

.module-panel.ad img {
    margin-bottom: 5px;
}
/* end module */

/* start article */
.article-action .fn-right > a,
.article-action .fn-right > span {
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 2px;
    display: inline-block;
    line-height: 12px;
    float: left;
    margin-left: 10px;
    text-decoration: none;
    color: #333;
}

#heatBar {
    position: fixed;
    top: 2px;
    right: 0px;
    width: 100%;
}

h2.article-title {
    word-break: break-all;
    font-size: 18px;
    font-weight: normal;
    margin: 10px 0;
}

.article-info .fn-flex-1 {
    font-size: 12px;
    line-height: 22px;
    margin-bottom: 15px;
}

#thoughtProgress {
    height: 2px;
    position: relative;
    margin-bottom: 6px;
}

#thoughtProgress .bar {
    position: absolute;
    background-color: #e0e0e0;
    height: 2px
}

#thoughtProgress .icon-video {
    position: absolute;
    top: -8px;
    left: 0;
    cursor: pointer;
    color: #911;
}

#revision .pagination {
    margin-top: 0;
} 

.content-reset table {
    width: 100%; 
    border: 1px solid #dedede; 
    margin: 15px auto;
    border-collapse: collapse; 
    empty-cells: show; 
}

.content-reset thead {
    text-align: center;
}

.content-reset td,
.content-reset th {
    height: 35px; 
    border: 1px solid #dedede; 
    padding: 0 10px; 
}

.content-reset th {
    font-weight: bold; 
    text-align: center !important; 
    background: rgba(158,188,226,0.2); 
}

.content-reset tbody tr:nth-child(2n) {
    background: rgba(158,188,226,0.12); 
}

.content-reset tr:hover {
    background: #efefef; 
}

.comment-submit {
    margin-top: 20px;
}

label.cmt-anonymous {
    margin: 7px 15px 0 0;
}

#shareClipboard.tooltipped-hover {
    color: #4183C4;
}

#comments > .comment-header {
    padding-bottom: 5px;
    border-bottom: 1px solid #CCCCCC;
    margin: 20px 0 0;
}

#comments > div.comment-header .icon-chevron-down {
    margin: 0px 10px 0 0;
    font-size: 24px;
}

#comments > div.comment-header a {
    text-decoration: none;
    color: #333;
}

#comments > div.comment-header .icon-sortasc,
#comments > div.comment-header .icon-time {
    font-size: 16px;
    font-weight: bold;
    margin: 4px 10px 0 0;
    display: inherit;
}

#comments li.shield {
    background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, rgba(255, 255, 255, .9)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .9)), color-stop(.75, rgba(255, 255, 255, .9)), color-stop(.75, transparent), to(transparent));
    background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
    background-color: #f5f5f5;
    background-size: 45px 45px;
}

#comments li:hover .hover-show {
    visibility: visible;
}

#comments .comment > p {
    margin-top: 13px;
}

#comments .comment-info {
    line-height: 17px;
}

.comment-login {
    border: 1px solid #D9D9D9;
    border-top-color: #C0C0C0;
    border-left-color: #C0C0C0;
    margin: 10px 0;
    padding: 3px;
    background-color: #FAFAFA;
    box-sizing: border-box;
}

.comment-login > a {
    text-align: center; 
    display: block; 
    padding: 21px 0px 21px;
}

#articleRewardContent {
    margin-top: 20px;
    padding: 10px;
    background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, rgba(255, 255, 255, .9)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .9)), color-stop(.75, rgba(255, 255, 255, .9)), color-stop(.75, transparent), to(transparent));
    background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
    background-color: #f5f5f5;
    background-size: 45px 45px;
}

#articleRewardContent.reward {
    text-align: center;
}

#articleRewardContent.reward > span {
    margin: 20px;
    display: inline-block;
}

#commentContent,
#chatContent {
    background-color: #FAFAFA;
    margin: 51px 0 0 0;
    overflow: hidden;
    padding: 4px;
    height: 88px;
    width: 100%;
}

.share {
    margin-top: 20px;
    margin-bottom: 5px;
    position: relative;
}

.share #qrCode {
    position: absolute;
    bottom: 30px;
    right: 0;
    border: 5px solid #e5e5e5;
    z-index: 1;
    height: 90px;
    border-radius: 3px;
    width: 90px;
}

.share [class^="icon-"] {
    cursor: pointer;
    transition: all 0.2s ease-out 0s;
    -webkit-transition: all 0.2s ease-out 0s;
    display: inline-block;
    font-size: 16px;
}

.share [class^="icon-"]:hover {
    color: #4183c4;
}

.grammar dl {
    float: left;
    height: 70px;
    width: 206px;
}

.cm-s-default.CodeMirror {
    height: auto !important;
}

.CodeMirror-scroll {
    min-height: 88px;
}

.editor-toolbar {
    margin-top: 20px;
}

#articleToC {
    top: 21px;
    z-index: 10;
}

.article-toc li {
    padding: 5px 10px 5px 20px;
    list-style-type: none;
    border-left: 2px solid transparent;
}

.article-toc li:last-child {
    border-bottom-width: 0;
}

.article-toc li:hover {
    border-left: 1px solid #4183c4;
    background-color: #F8F8F8;
}

.article-toc li.current {
    border-left: 2px solid #4183c4;
    background-color: #f0f0f0;
}

.article-toc li.toc-h2 {
    padding-left: 34px;
}

.article-toc li.toc-h3 {
    padding-left: 48px;
}

.article-toc li.toc-h4 {
    padding-left: 62px;
}

.article-toc li.toc-h5 {
    padding-left: 86px;
}

.article-toc li a {
    display: block;
    line-height: 20px;
    color: #767676;
}

.article-toc li:hover a {
    padding-left: 1px;
    color: #4183C4;
    text-decoration: none;
}

.article-toc li.current a {
    padding-left: 0;
    color: #4183c4;
}
/* end article */

/* start domains */
.domains {
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    padding-top: 30px;
}

.domains a {
    float: left;
    padding: 5px 15px 6px;
    color: #666;
    white-space: nowrap;
    border: solid transparent;
    border-width: 3px 1px 1px;
    border-radius: 3px 3px 0 0;
    text-decoration: none;
}

.domains a.selected {
    margin-bottom: -1px;
    background-color: #FFF;
    border-color: #d26911 #e5e5e5 transparent;
    color: #111;
}

.domains a:hover {
    color: #333;
}

.domains svg {
    color: #bbb;
    vertical-align: text-top;
    fill: currentColor;
}

.domains a.selected svg {
    color: inherit;
}

.domain-tags a {
    float: left;
    padding: 5px 10px;
    color: #333;
    border: 1px solid #e5e5e5;
    line-height: 18px;
    text-decoration: none;
    font-size: 13px;
    margin-left: -1px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.domain-tags a:hover {
    color: #FFF;
    background-color: #4078c0;
    border-color: #4078c0;
}

.domain-tags a:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.domain-tags a:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.domains-count {
    padding: 10px 18px;
    font-size: 18px;
    line-height: 26px;
    color: #1b3650;
    text-align: center;
    background-image: linear-gradient(#f5fbff, #e4f0ff);
    border: 1px solid #cee0e7;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}
/* start domains */

/* start article list */
.article-list li.stick {
    background-color: #F7F7F7;
}

.article-list li.stick .stick-remains {
    vertical-align: top;
}

.article-list li.stick:hover .stick-remains {
    display: inline;
}

.article-list li .commenters {
    display: none;
    top: 32%;
    position: absolute;
    right: 10px;
}

.article-list li .commenters > a {
    float: left;
    margin-left: 4px;
    width: 25px;
    text-decoration: none;
    color: #999;
}

.article-list li .commenters > a:hover {
    color: #4183c4;
}

.article-list li:hover .commenters {
    display: block;
}

.article-list .preview {
    position: absolute;
    left: 65px;
    z-index: 1;
    top: 40px;
    background-color: #FFF;
    border: 1px solid #DDDDDD;
    border-radius: 3px 3px 3px 3px;
    padding: 5px 10px;
    opacity: 0.9;
    filter: alpha(opacity=90);
    width: 70%;
    min-width: 130px;
    min-height: 36px;
}

.article-list .preview .ico-arrow {
    width: 0px;
    height: 0px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(256, 256, 256, 0.9);
    position: absolute;
    top: -10px;
    z-index: 1;
    left: 11px;
}

.article-list .preview .ico-arrowborder {
    width: 0px;
    height: 0px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid #DDDDDD;
    position: absolute;
    top: -11px;
    left: 10px;
}

.heat {
    position: absolute;
    height: 5px;
    background-color: #911;
    z-index: 1;
    bottom: -3px;
    right: 0;
}

.point,
.point-remove {
    position: absolute;
    height: 5px;
    background-color: #911;
    z-index: 1;
    bottom: -3px;
    right: 0px;
    width: 5px;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: slideInRight;
    animation-name: slideInRight;
}

.point-remove {
    animation-name: slideInLeft;
    -webkit-animation-name: slideInLeft;
}

@keyframes slideInLeft {
    0% {
        right: 0;
    }

    100% {
        right: 100%;
    }
}

@-webkit-keyframes slideInLeft {
    0% {
        right: 0;
    }

    100% {
        right: 100%;
    }
}

@keyframes slideInRight {
    0% {
        right: 100%;
    }

    100% {
        right: 0;
    }
}

@-webkit-keyframes slideInRight {
    0% {
        right: 100%;
    }

    100% {
        right: 0;
    }
}
/* end article list */

/* start register */
.register .intro {
    border-left: 1px dashed #C0C0C0;
    margin-left: 50px;
    min-height: 200px;
    padding-left: 30px;
}

.register .form input[type="text"],
.register .form input[type="password"], 
.register .form textarea {
    margin: 10px 0;
    width: 200px;
}

#securityCode {
    margin-right: 10px;
    width: 131px;
}
/* end register */

/* start side tags */
.module-panel .tags li {
    float: left;
    list-style: none;
    line-height: 19px;
    margin: 5px 10px 0 0;
}

.module-panel .tags {
    margin: 0 0 10px 10px;    
}

.tag-desc.fn-clear {
    margin: 10px 0 0px 10px;    
}

.tag-desc > li {
    float: left;
    position: relative;
    list-style: none;
    margin: 0 10px 10px 0;
    font-size: 12px;
}

.tag-desc > li:hover > div {
    display: block;
}

.tag-desc > li > span {
    float: left;
    padding: 2px 5px;
    border: 1px solid #DDDDDD;
    position: relative;
    height: 20px;
    white-space: nowrap;
    word-wrap: normal;
    background-color: #F7F7F7;
    border-radius: 3px 3px 3px 3px;
    line-height: 21px;
}

.tag-desc > li:hover > span {
    border-bottom-style: dotted;
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    filter: alpha(opacity=70);
    z-index: 3;
}

.tag-desc > li > span > a {
    text-decoration: none;
    color: #999;
}

.tag-desc > li > span > img {
    border-radius: 2px 2px 2px 2px;
    height: 16px;
    width: 16px;
    margin: -2px 2px 0 0;
}

.tag-desc > li > div {
    background-color: #F7F7F7;
    border: 1px solid #DDDDDD;
    border-radius: 3px 0 3px 3px;
    display: none;
    right: 0;
    margin-left: 3px;
    padding: 5px 10px;
    position: absolute;
    top: 25px;
    z-index: 2;
    opacity: 0.9;
    filter: alpha(opacity=90);
    width: 200px;
    min-width: 150px;
}

.tag-articles-tag-desc.tag-desc {
    margin: 30px 0 0 0;
}

.tag-articles-tag-desc.tag-desc > li > div {
    left: -3px;
    right: auto;
    border-radius: 0 3px 3px 3px;
}

.tag-articles h1.fn-inline {
    line-height: 37px;
}

.tag-articles div.description {
    text-indent: 60px;
}

.tag-articles .btn.red {
    vertical-align: super;
}
/* end side tags */

/* start tags.html */
.tags-cold li h2,
.tags-trend li h2 {
    display: inline;
}
/* end tags.html */

/* start tag-article.html */
.tag-artile-user {
    margin-left: 20px;
    margin-top: 35px;
    flex: 3;
    -webkit-box-flex: 3;
}
/* end tag-article.html */

/* start overwrite prettify.css */
code.prettyprint {
    display: inline;
    border: none;
    background-color: initial;
    border-radius: initial;
    padding: initial;
}

code .str { color: initial; } /* string  - green */
code .kwd { color: initial; } /* keyword - dark pink */
code .com { color: initial; font-style: italic; } /* comment - gray */
code .typ { color: initial; } /* type - light blue */
code .lit { color: initial; } /* literal - blue */
code .pun { color: initial; } /* punctuation - white */
code .pln { color: initial; } /* plaintext - white */
code .tag { color: initial; } /* html/xml tag    - light blue */
code .atn { color: initial; } /* html/xml attribute name  - khaki */
code .atv { color: initial; } /* html/xml attribute value - green */
code .dec { color: initial; } /* decimal - blue */
/* end overwrite prettify.css */

/* start activity */
.activity {
    min-height: 300px;
}

#charCanvas {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background-color: #fff;
    display: block;
    background-image: url(../images/m-char.png);
    background-size: cover;
    margin: 20px auto;
}
/* end activity */

/* start chat room */
.chat-room .online-cnt {
    margin-top: 11px;
}

.chat-room .list {
    height: 200px;
    overflow: auto;
}
/* end chat room */